home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ für Kids
/
C++ for kids.iso
/
SETUP
/
US
/
CBUILDER
/
DATA.Z
/
DSGNINTF.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-13
|
24KB
|
662 lines
//----------------------------------------------------------------------------
// DsgnIntf.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: DsgnIntf.pas
//----------------------------------------------------------------------------
#ifndef DsgnIntfHPP
#define DsgnIntfHPP
//----------------------------------------------------------------------------
#include <TypInfo.hpp>
#include <Forms.hpp>
#include <Controls.hpp>
#include <Graphics.hpp>
#include <Classes.hpp>
#include <SysUtils.hpp>
#include <System.hpp>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Dsgnintf
{
//-- type declarations -------------------------------------------------------
class __declspec(delphiclass) TComponentList;
class __declspec(pascalimplementation) TComponentList : public System::TObject
{
typedef System::TObject inherited;
private:
Classes::TList* FList;
Classes::TComponent* __fastcall Get(int Index);
int __fastcall GetCount(void);
public:
__fastcall TComponentList(void);
__fastcall virtual ~TComponentList(void);
int __fastcall Add(Classes::TComponent* Item);
bool __fastcall Equals(TComponentList* List);
__property int Count = {read=GetCount, nodefault};
__property Classes::TComponent* Items[int Index] = {read=Get/*, default*/};
};
class __declspec(delphiclass) TFormDesigner;
class __declspec(pascalimplementation) TFormDesigner : public Forms::TDesigner
{
typedef Forms::TDesigner inherited;
public:
virtual Sysutils::TMethod __fastcall CreateMethod(const System::AnsiString Name, Typinfo::PTypeData
TypeData) = 0;
virtual System::AnsiString __fastcall GetMethodName(const Sysutils::TMethod &Method) = 0;
virtual void __fastcall GetMethods(Typinfo::PTypeData TypeData, Classes::TGetStrProc Proc) = 0;
virtual System::AnsiString __fastcall GetPrivateDirectory(void) = 0;
virtual void __fastcall GetSelections(TComponentList* List) = 0;
virtual bool __fastcall MethodExists(const System::AnsiString Name) = 0;
virtual void __fastcall RenameMethod(const System::AnsiString CurName, const System::AnsiString NewName
) = 0;
virtual void __fastcall SelectComponent(Classes::TComponent* Component) = 0;
virtual void __fastcall SetSelections(TComponentList* List) = 0;
virtual void __fastcall ShowMethod(const System::AnsiString Name) = 0;
virtual System::AnsiString __fastcall UniqueName(const System::AnsiString BaseName) = 0;
virtual void __fastcall GetComponentNames(Typinfo::PTypeData TypeData, Classes::TGetStrProc Proc) = 0
;
virtual Classes::TComponent* __fastcall GetComponent(const System::AnsiString Name) = 0;
virtual System::AnsiString __fastcall GetComponentName(Classes::TComponent* Component) = 0;
virtual bool __fastcall MethodFromAncestor(const Sysutils::TMethod &Method) = 0;
virtual Classes::TComponent* __fastcall CreateComponent(System::TMetaClass* ComponentClass, Classes::TComponent*
Parent, int Left, int Top, int Width, int Height) = 0;
virtual bool __fastcall IsComponentLinkable(Classes::TComponent* Component) = 0;
virtual void __fastcall MakeComponentLinkable(Classes::TComponent* Component) = 0;
virtual Classes::TComponent* __fastcall GetRoot(void) = 0;
virtual void __fastcall Revert(Classes::TPersistent* Instance, Typinfo::PPropInfo PropInfo) = 0;
public:
/* TObject.Create */ __fastcall TFormDesigner(void) : Forms::TDesigner() { }
/* TObject.Destroy */ __fastcall virtual ~TFormDesigner(void) { }
};
enum TPropertyAttribute { paValueList, paSubProperties, paDialog, paMultiSelect, paAutoUpdate, paSortList,
paReadOnly, paRevertable };
typedef Set<TPropertyAttribute, paValueList, paRevertable> TPropertyAttributes;
struct TInstProp
{
Classes::TComponent* Instance;
Typinfo::TPropInfo *PropInfo;
} ;
typedef TInstProp TInstPropList[1024];
typedef TInstPropList *PInstPropList;
class __declspec(delphiclass) TPropertyEditor;
typedef void __fastcall (__closure *TGetPropEditProc)(TPropertyEditor* Prop);
class __declspec(pascalimplementation) TPropertyEditor : public System::TObject
{
typedef System::TObject inherited;
private:
TFormDesigner* FDesigner;
TInstPropList *FPropList;
int FPropCount;
__fastcall TPropertyEditor(TFormDesigner* ADesigner, int APropCount);
System::AnsiString __fastcall GetPrivateDirectory(void);
void __fastcall SetPropEntry(int Index, Classes::TComponent* AInstance, Typinfo::PPropInfo APropInfo
);
protected:
Typinfo::PPropInfo __fastcall GetPropInfo(void);
Extended __fastcall GetFloatValue(void);
Extended __fastcall GetFloatValueAt(int Index);
Sysutils::TMethod __fastcall GetMethodValue(void);
Sysutils::TMethod __fastcall GetMethodValueAt(int Index);
long __fastcall GetOrdValue(void);
long __fastcall GetOrdValueAt(int Index);
System::AnsiString __fastcall GetStrValue(void);
System::AnsiString __fastcall GetStrValueAt(int Index);
System::Variant __fastcall GetVarValue(void);
System::Variant __fastcall GetVarValueAt(int Index);
void __fastcall Modified(void);
void __fastcall SetFloatValue(Extended Value);
void __fastcall SetMethodValue(const Sysutils::TMethod &Value);
void __fastcall SetOrdValue(long Value);
void __fastcall SetStrValue(const System::AnsiString Value);
void __fastcall SetVarValue(const System::Variant &Value);
public:
__fastcall virtual ~TPropertyEditor(void);
virtual void __fastcall Activate(void);
virtual bool __fastcall AllEqual(void);
virtual void __fastcall Edit(void);
virtual TPropertyAttributes __fastcall GetAttributes(void);
Classes::TComponent* __fastcall GetComponent(int Index);
virtual int __fastcall GetEditLimit(void);
virtual System::AnsiString __fastcall GetName(void);
virtual void __fastcall GetProperties(TGetPropEditProc Proc);
Typinfo::PTypeInfo __fastcall GetPropType(void);
virtual System::AnsiString __fastcall GetValue(void);
virtual void __fastcall GetValues(Classes::TGetStrProc Proc);
virtual void __fastcall Initialize(void);
void __fastcall Revert(void);
virtual void __fastcall SetValue(const System::AnsiString Value);
bool __fastcall ValueAvailable(void);
__property TFormDesigner* Designer = {read=FDesigner, nodefault};
__property System::AnsiString PrivateDirectory = {read=GetPrivateDirectory, nodefault};
__property int PropCount = {read=FPropCount, nodefault};
__property System::AnsiString Value = {read=GetValue, write=SetValue, nodefault};
public:
/* TObject.Create */ __fastcall TPropertyEditor(void) : System::TObject() { }
};
typedef System::TMetaClass*TPropertyEditorClass;
class __declspec(delphiclass) TOrdinalProperty;
class __declspec(pascalimplementation) TOrdinalProperty : public TPropertyEditor
{
typedef TPropertyEditor inherited;
public:
virtual bool __fastcall AllEqual(void);
virtual int __fastcall GetEditLimit(void);
public:
/* TPropertyEditor.Destroy */ __fastcall virtual ~TOrdinalProperty(void) { }
public:
/* TObject.Create */ __fastcall TOrdinalProperty(void) : Dsgnintf::TPropertyEditor() { }
};
class __declspec(delphiclass) TIntegerProperty;
class __declspec(pascalimplementation) TIntegerProperty : public TOrdinalProperty
{
typedef TOrdinalProperty inherited;
public:
virtual System::AnsiString __fastcall GetValue(void);
virtual void __fastcall SetValue(const System::AnsiString Value);
public:
/* TPropertyEditor.Destroy */ __fastcall virtual ~TIntegerProperty(void) { }
public:
/* TObject.Create */ __fastcall TIntegerProperty(void) : Dsgnintf::TOrdinalProperty() { }
};
class __declspec(delphiclass) TCharProperty;
class __declspec(pascalimplementation) TCharProperty : public TOrdinalProperty
{
typedef TOrdinalProperty inherited;
public:
virtual System::AnsiString __fastcall GetValue(void);
virtual void __fastcall SetValue(const System::AnsiString Value);
public:
/* TPropertyEditor.Destroy */ __fastcall virtual ~TCharProperty(void) { }
public:
/* TObject.Create */ __fastcall TCharProperty(void) : Dsgnintf::TOrdinalProperty() { }
};
class __declspec(delphiclass) TEnumProperty;
class __declspec(pascalimplementation) TEnumProper